package com.example.demoresilience4jfeignconsumer;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class MyFeignClient {
    private final com.example.demoresilience4jfeignconsumer.DemoResilience4jFeignConsumerApplication.UserloginService userLoginService;

    public  MyFeignClient( com.example.demoresilience4jfeignconsumer.DemoResilience4jFeignConsumerApplication.UserloginService userLoginService) {
        this.userLoginService = userLoginService;
    }


    @RequestMapping(value="/ulogin",produces = "application/json;charset=UTF-8")
    public Map userlogin() {
        return userLoginService.myUserlogin();
    }

}

